更新投放计划
更新投放计划
| 请求参数 | 类型 | 描述 |
|---|---|---|
| plan_id | string | 投放计划ID |
| json | object | 声明请求的JSON数据结构 |
| modify_content | object | 修改内容 |
| plan_name | string | 投放计划名称 |
| delivery_end_time | string | 结束可用时间 |
| total_count | integer | 总库存 |
| user_limit | integer | 单用户限领 |
| daily_limit | integer | 单日限领 |
| recommend_word | string | 营销标签 |
php
$instance->v3->marketing->partner->deliveryPlan->deliveryPlans->_plan_id_->patchAsync([
'plan_id' => '12000',
'json' => [
'modify_content' => [
'plan_name' => '冬季饮料投放',
'delivery_end_time' => '2025-01-01T00:00:00+08:00',
'total_count' => 1,
'user_limit' => 1,
'daily_limit' => 1,
'recommend_word' => '天天有惊喜',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/marketing/partner/delivery-plan/delivery-plans/{plan_id}')->patchAsync([
'plan_id' => '12000',
'json' => [
'modify_content' => [
'plan_name' => '冬季饮料投放',
'delivery_end_time' => '2025-01-01T00:00:00+08:00',
'total_count' => 1,
'user_limit' => 1,
'daily_limit' => 1,
'recommend_word' => '天天有惊喜',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/marketing/partner/delivery-plan/delivery-plans/{plan_id}']->patchAsync([
'plan_id' => '12000',
'json' => [
'modify_content' => [
'plan_name' => '冬季饮料投放',
'delivery_end_time' => '2025-01-01T00:00:00+08:00',
'total_count' => 1,
'user_limit' => 1,
'daily_limit' => 1,
'recommend_word' => '天天有惊喜',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->marketing->partner->deliveryPlan->deliveryPlans->_plan_id_->patch([
'plan_id' => '12000',
'json' => [
'modify_content' => [
'plan_name' => '冬季饮料投放',
'delivery_end_time' => '2025-01-01T00:00:00+08:00',
'total_count' => 1,
'user_limit' => 1,
'daily_limit' => 1,
'recommend_word' => '天天有惊喜',
],
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/marketing/partner/delivery-plan/delivery-plans/{plan_id}')->patch([
'plan_id' => '12000',
'json' => [
'modify_content' => [
'plan_name' => '冬季饮料投放',
'delivery_end_time' => '2025-01-01T00:00:00+08:00',
'total_count' => 1,
'user_limit' => 1,
'daily_limit' => 1,
'recommend_word' => '天天有惊喜',
],
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/marketing/partner/delivery-plan/delivery-plans/{plan_id}']->patch([
'plan_id' => '12000',
'json' => [
'modify_content' => [
'plan_name' => '冬季饮料投放',
'delivery_end_time' => '2025-01-01T00:00:00+08:00',
'total_count' => 1,
'user_limit' => 1,
'daily_limit' => 1,
'recommend_word' => '天天有惊喜',
],
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| plan | object | 投放计划详情 |
| plan_id | string | 投放计划ID |
| plan_name | string | 投放计划名称 |
| plan_state | string | 投放计划状态PLAN_CREATING | PLAN_CREATED | PLAN_TERMINATING | PLAN_TERMINATED | PLAN_EXPIRED | PLAN_DELIVERING | PLAN_PAUSED 枚举值之一 |
| delivery_start_time | string | 开始可用时间 |
| delivery_end_time | string | 结束可用时间 |
| stock_id | string | 批次ID |
| product_coupon_id | string | 商品券ID |
| recommend_word | string | 营销标签 |
| brand_id | string | 品牌ID |
| total_count | integer | 总库存 |
| user_limit | integer | 单用户限领 |
| daily_limit | integer | 单日限领 |
参阅 官方文档